package com.ruoyi.ipms_patent.service.impl;

import com.ruoyi.ipms_patent.dto.ContractDto;
import com.ruoyi.ipms_patent.mapper.ContractMapper;
import com.ruoyi.ipms_patent.service.ContractService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/*/*
 * Description : TODO  立案采集 业务层处理
 * ChangeLog : 1. 创建 (2022/4/21 11:37 [zhouhongcheng]);
*/
@Service
public class ContractServiceImpl implements ContractService {

    //创建日志对象logger
    private static final Logger log = LoggerFactory.getLogger(ContractServiceImpl.class);

    @Autowired
    private ContractMapper contractMapper;

    /*/*
     * Description : TODO 根据条件分页查询列表 合同信息集合
     * ChangeLog : 1. 创建 (2022/4/21 11:54 [zhouhongcheng]);
     */
    @Override
    public List<ContractDto> selectcontractList(ContractDto contractDto) {
        return contractMapper.selectcontractList(contractDto);
    }

    @Override
    public boolean updatecontract(List contractNos) {
        return contractMapper.updatecontract(contractNos)>0;
    }
}
